# coding:utf8
import os
import sys
import time

LOG_FILE = 'slow_query_3306.log'


def main():
    counter = 0
    res = []
    with open(LOG_FILE, 'r') as lines:
        for line in lines:
            if counter > 0:
                counter += 1
            if line.find('# Time: ') >= 0:
                counter = 1

            if counter == 1:
                res.append(line.split()[2]);
            if counter == 2:
                res.append(line.split()[2]);
            if counter == 3:
                res.append(line.split()[2]);
    print len(res)


if __name__ == '__main__':
    main()
